﻿<!--{inc(header.view.html)}-->


<div class="header">    
  
                       <div class="nav">
	                                 <ul id="nav_list">
                                                 <li><a href="index.php?app=sx&act=index" target="mainframe">SX数据包管理</a></li>    
                                                 <li><a href="index.php?app=sx&act=sadd" class="nav_icon"  target="mainframe">SX数据包增加</a></li>

	                                 </ul>
                       </div>
                
</div>



<div id="content">
                   <h1>SX数据管理</h1>

                  <div>
                                    <div class="tips_show"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b>
                                                                  <span ></span>
                                    </div>



<style type="text/css">
.search_box {
padding:10px;
vertical-align:middle;
}
.search_box .l {
float:left;
vertical-align:middle;
}
.search_box .r {
float:right;
}
</style>
                                   
                                   
                                   
<form  method="post" action="?app=sx&act=daddpost" >
<div class="search_box">
<div class="l"><img  src="{$web_view_dir}style/images/it_nav.gif" align="middle">
<span class="bold">增加数据:</span>	       <select name="data[parent_id]" >
                                           <option value='0'>请选择分类...</option>
                                           
                                           <?php foreach((array)$sxdata as $_key => $_value ) { ?>
                                           
				<option value="{$_value.id}" >{$_value.str_pad}{$_value.name}</option>
                
                                            <?php } ?>
                                           </select>
                                           &nbsp;&nbsp;&nbsp;
                                           <input type="text" title="数据" value="" name="data[name]"> &nbsp;&nbsp;&nbsp;<input name="data[sort]" type="hidden" value="{$id}" /><input type="submit" value="提交" class="buton">

</div>

<div class="r">

</div>

</div>
</form>

<div class="clear"></div>



     
<table width="100%" cellspacing="0" cellpadding="4" border="0" align="center"  class="table_style">
<tbody>
<tr>

	<td class="bold" width="80px">数据id</td>	
	<td class="bold" width="70%">数据</td>

	<td class="bold" width="80px">操作</td>
</tr>


<?php foreach((array)$sxdata as $_key => $_value ) { ?>
<tr  onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	<td  align="center">
	{$_value.id}

	</td>
	
	
	<td>
	<input type="text"   style="width: 400px; text-align: left;" value="{$_value.str_pad}{$_value.name}" name="{$_key}" onchange="ato_url('index.php?app=sx&act=deditpost&sid={$id}&did={$_value.id}',this);">

	</td>

   	

	<td>
	                  <a href="?app=sx&act=ddel&sid={$id}&did={$_value.id}" onClick="return confirm('确认删除此项？此操作无法恢复！');">删除</a>
	                                           </div>
                                               
	                                       
	</td>
</tr>

<?php } ?> 


</tbody>
</table>
                        
    
    

                 </div>

</div>



<!--{inc(footer.view.html)}-->